// 票务专区页面
import request from '../request/request';

//获取用户收藏列表
export const fetchCollectList = (userId, type = 1) => {
  return request({
    url: '/Collect/index',
    method: 'post',
    data: { user_id: userId, type },
  });
};

//添加/取消收藏
export const toggleCollection = (userId, type) => {
  return request({
    url: '/Collect/add',
    method: 'post',
    data: { user_id: userId, type },
  });
};

//添加/取消点赞
export const toggleLike = (userId, type = 3) => {
  return request({
    url: '/Collect/add',
    method: 'post',
    data: { user_id: userId, type },
  });
};